﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//using Quartz.Job;
//using Quartz.Impl;
//using Quartz.Core;
//using Quartz;

namespace SkypeBot.Core.Scheduler
{
    using SkypeBot.Core.Scheduler.Jobs;

    public class Scheduler
    {
        public Scheduler()
        {
            //ISchedulerFactory schedulerFactory = new StdSchedulerFactory();

            ////Ask the scheduler factory for a scheduler
            //IScheduler scheduler = schedulerFactory.GetScheduler();

            ////Start the scheduler so that it can start executing jobs
            //scheduler.Start();

            //// Create a job of Type WriteToConsoleJob
            //IJobDetail job = JobBuilder.Create(typeof(HelloJob)).WithIdentity("MyJob", "MyJobGroup").Build();

            ////Schedule this job to execute every second, a maximum of 10 times
            //ITrigger trigger = TriggerBuilder.Create().WithSchedule(SimpleScheduleBuilder.RepeatSecondlyForever()).StartNow().WithIdentity("MyJobTrigger", "MyJobTriggerGroup").Build();
            //scheduler.ScheduleJob(job, trigger);


           // .WithSchedule(CronScheduleBuilder.DailyAtHourAndMinute(16, 30)) // execute job daily at 9:30


            // Add the job to the scheduler
            //scheduler.AddJob(job, true);
            //scheduler.ScheduleJob(job, t);
        }

    }
}
